<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>旋转</title>
        <style>
            li{
                width: 200px;
                height: 200px;
                list-style: none;
                transition: all 1s;
            }
            li:nth-of-type(1){
                background: peru;
            }
            body:hover li:nth-of-type(1){
                transform: rotate3d(0.5,-0.5,0.5,140deg);/*x,y,z表示三个轴的矢量，正负为顺逆*/
            }
            li:nth-of-type(2){
                background: yellow;
                transform-origin: 0px 0px;
            }
            body:hover li:nth-of-type(2){
                transform: rotate3d(0.5,-0.5,0.5,140deg);/*x,y,z表示三个轴的矢量，正负为顺逆*/
            }
            li:nth-of-type(3){
                background: peru;
            }
            body:hover li:nth-of-type(3){
                transform: translateX(100px) rotateY(60deg);
            }
            li:nth-of-type(4){
                background: red;
                margin-top: 10px;
            }
            body:hover li:nth-of-type(4){
                transform: rotateY(60deg) translateX(200px) ;
            }
        </style>
    </head>
    <body>
        <ul>
            <li>1</li>
            <li>2</li>
            <li>3,先位移后旋转</li>
            <li>4,先旋转后位移</li>
        </ul>
    </body>
</html>